package com.rpctest.sample.server;

import com.rpctest.register.ServiceRegistry;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * Created by dimi on 2017/12/5.
 */
public class RpcBootstrap {
    private static final Logger LOGGER = LoggerFactory.getLogger(RpcBootstrap.class);
    public static void main(String[] args) {
        LOGGER.debug("start server");
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("service_config/spring.xml");
        ServiceRegistry bean = context.getBean(ServiceRegistry.class);
        System.out.println(bean != null );
    }

}
